package com.hn.zhijian.system.service;

import com.hn.zhijian.base.service.IBaseService;
import com.hn.zhijian.system.entity.SysDictionary;
import com.hn.zhijian.system.model.request.DictionaryRequest;
import com.hn.zhijian.system.model.response.DictionaryResponse;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author carl chen
 * @since 2019-11-17
 */
public interface IDictionaryService extends IBaseService<SysDictionary> {
    @Transactional
    public DictionaryResponse save(DictionaryRequest request);

    @Transactional
    public DictionaryResponse update(DictionaryRequest request);

    @Transactional
    public Integer del(Long id);

    public DictionaryResponse get(Long id);

    public List<DictionaryResponse> getDictionarys(String type);
}
